﻿using System;
using Avalonia.Media;
using CommunityToolkit.Mvvm.ComponentModel;

namespace ui_test.ViewModels;

public partial class KeyUserControlViewModel : ViewModelBase
{
    [ObservableProperty] private string _keyContent;
    [ObservableProperty] private int _totalNum;
    [ObservableProperty] private int _width = 50;
    [ObservableProperty] private IBrush _background;
    [ObservableProperty] private IBrush _foreground;

    public KeyUserControlViewModel()
    {
        Console.WriteLine("vm init...");
    }
}